#ifndef __JSONRPC_SERVER_H__
#define __JSONRPC_SERVER_H__

#include <glib.h>

#include "json/json.h"
#include "jsonrpc.h"

#ifdef __cplusplus
extern "C" {
#endif

jsonrpc_server *jsonrpc_server_new();
void jsonrpc_server_destroy(jsonrpc_server *server);

json_object *ajax(json_object *params);
json_object *files(json_object *params);
json_object *base64(json_object *params);
json_object *cmd(json_object *params);

#ifdef __cplusplus
}
#endif

#endif
